<template>
  <div class="toast-box">
    {{ text }}
  </div>
</template>

<script>
export default {
  props: {
    text: [String]
  }
}
</script>

<style lang="scss" scoped>
.toast-box {
  position: fixed;
  inset: 0;
  z-index: 999;
  padding: 20px;
  width: fit-content;
  height: fit-content;
  flex-shrink: 0;
  border-radius: 12px;
  background: #0000007a;
  color: #ffffff;
  font-size: 16px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease-in-out;
  opacity: 1;
}
</style>
